-- GENERATED SPELL FOR [Alluvion] --


function spell0_21730(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(15063,pUnit)
pUnit:RegisterEvent('Sorts_21730', 8315, 1)
end

function spell1_21730(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(38669,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21730', 2500, 1)
end

function Sorts_21730(pUnit, Event)
local choix_sorts_21730 = math.random(0, 1)
if choix_sorts_21730 == 0 then
pUnit:RegisterEvent('spell0_21730', 1, 1)
end
if choix_sorts_21730 == 1 then
pUnit:RegisterEvent('spell1_21730', 1, 1)
end
end

function mob21730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21730', math.random(1500, 3000), 1)
end

function mob21730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21730, 1, 'mob21730_Action')
RegisterUnitEvent(21730, 2, 'mob21730_Leave')
RegisterUnitEvent(21730, 3, 'mob21730_Kill')
RegisterUnitEvent(21730, 4, 'mob21730_Die')
